# encoding: utf-8
while True:
    print('开始')
    prompt = "电影票分年龄票价不同，请输入你的年龄:"
    nianling = input(prompt)
    print('年龄是%s' %nianling)
    print('2年龄是' + str(nianling) )
    if nianling == 'quit':
        break
    else:
        if(nianling<3):
            print('免费')
        elif(nianling<=12):
            print('10元')
        else:
            print('15元')
    print('结束\n')

